/* ✅ Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body, html {
  overflow-x: hidden;
  background: #f4f4f4;
  min-height: 100vh;
}

/* ✅ Navbar */
.navbar {
  width: 100%;
  background: #0d1b2a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  height: 70px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  position: relative;
  transition: 0.3s;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: #ffcc00;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ✅ Right icons */
.right-icons a {
  color: #fff;
  font-size: 22px;
  margin-left: 15px;
  transition: 0.3s;
}

.right-icons a:hover {
  color: #ffcc00;
}

/* ✅ Dropdown */
.dropdown {
  position: relative;
}
.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0c0b0b;
  min-width: 200px;
  border-radius: 6px;
  z-index: 1000;
  flex-direction: column;
}
.dropdown-menu a {
  padding: 10px 15px;
  color: #eee;
  text-decoration: none;
  display: block;
}
.dropdown-menu a:hover {
  background: #201d1d;
}
@media (min-width: 768px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* ✅ Mobile Navbar */
@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    background: #0d1b2a;
    flex-direction: column;
    width: 100%;
    padding: 15px 0;
    z-index: 10000;
  }
  .nav-links.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
    font-size: 22px;
    cursor: pointer;
    margin-right: auto;
    order: -1;
  }
  .right-icons {
    margin-left: auto;
  }
}
@media (min-width: 993px) {
  .menu-toggle {
    display: none;
  }
}

/* ✅ Content spacing */
.content {
  margin-top: 80px;
  padding: 40px;
  text-align: center;
}

/*---------------------------------------- Gallery Section ----------------------------------------*/
.gallery-section {
  margin-top: 100px; 
}

.gallery-header {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  margin: 20px auto; 
  width: 90%;
}

.gallery-header button {
  background: #007bff;
  color: #fff;
  border: none; 
  padding: 10px 20px;
  font-size: 18px;
  border-radius: 6px; 
  cursor: pointer;
  transition: 0.3s ease;
}

.gallery-header button:hover { 
  background: #0056b3; 
}

.gallery-header button:disabled {
  background: #ccc; 
  cursor: not-allowed;
}

.gallery-grid {
  width: 90%; 
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-grid img {
  width: 100%; 
  height: 440px; 
  object-fit: cover;
  border-radius: 10px; 
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/*---------------------------------------- Thumbnails & Lightbox ----------------------------------------*/
.thumb-img {
  width: 200px;
  margin: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.thumb-img:hover {
  transform: scale(1.05);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/*---------------------------------------- Footer ----------------------------------------*/
.footer-section {
  width: 100%;
  background: #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  font-family: "Roboto", "Open Sans", sans-serif;
  font-size: 16px;
  color: #333;
  margin-top: 30px;
}

.footer-section a {
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
}

/*---------------------------------------- Responsive ----------------------------------------*/
/* Mobile */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid img {
    height: 200px;
  }
  .footer-section {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 15px;
  }
}

/* iPad Portrait / Small tablets */
@media (min-width: 601px) and (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid img {
    height: 250px;
  }
}

/* iPad Landscape / Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .gallery-grid img {
    height: 300px;
  }
}

/* iPad Pro / Large Tablets / Small Desktop */
@media (min-width: 1025px) and (max-width: 1366px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-grid img {
    height: 380px;
  }
}
